import Vue from 'vue'
import Vuex from 'vuex'
import {link} from "@/api/api.js"
import {xiangqing} from "./modules/xiangqing.js"
import {listdata1} from "./modules/listt.js"
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    arr:[]
  },
  mutations: {
    getimgurl(state,payload){
      state.arr=payload
    }
  },
  actions: {
    listdate(context){
      link("/user/list","get").then((ok)=>{
        context.commit("getimgurl",ok.data)
        // console.log(ok.data)
      
      })
    }
  },
  modules: {
    xiangqing,listdata1
  }
})
